package com.taru.order.common;

import java.util.List;

public class Data {
    //总页数
    private long totalPage;
    //数据总数
    private long totalCount;
    //页面大小
    private long pageSize;
    //当前页的页码
    private long pageNum;
    //实体类的集合
    List list;



    public void setTotalPage(long totalCount,long paSize) {
        this.totalPage = (totalCount%paSize==0) ? (totalCount/paSize) : (totalCount/paSize+1);
    }

    public long getTotalPage() {
        return totalPage;
    }


    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getPageNum() {
        return pageNum;
    }

    public void setPageNum(long pageNum) {
        this.pageNum = pageNum;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
}
